package com.hzlx.consumption.feign;

import com.hzlx.MesMaterialBatchesDto;
import com.hzlx.consumption.feign.fallback.MaterialBatchesServiceFallbackFactory;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(
      contextId = "materialBatchesService",value = "material-service",fallbackFactory = MaterialBatchesServiceFallbackFactory.class
)
public interface MaterialBatchesService {

    @PutMapping("/inventory/batchDtos")
     AjaxResult editDtos(@RequestBody MesMaterialBatchesDto mesMaterialBatches);
}

